﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store.Master" AutoEventWireup="true"
	CodeBehind="Catalog.aspx.cs" Inherits="ElectronStore.Catalog" %>

<%@ Register TagPrefix="store" TagName="StorePager" Src="~/Pager.ascx" %>

<asp:Content ID="ContentHeader" ContentPlaceHolderID="contentHead" runat="server">
</asp:Content>
<asp:Content ID="ContentBody" ContentPlaceHolderID="contentMain" runat="server">
	<div>
		<div class="categories" id="divCategory" runat="server">
		<div>
			<asp:BulletedList CssClass="blCategory" ID="blCategories1" runat="server" DisplayMode="HyperLink" BulletStyle="Circle">
			</asp:BulletedList>
		</div>
			<div id="insertItem" runat="server"></div>
		<div>
			<asp:BulletedList CssClass="blCategory" ID="blCategories2" runat="server" DisplayMode="HyperLink" BulletStyle="Circle">
			</asp:BulletedList>
		</div>
		</div>

		<div class="goods">
			<asp:ListView ID="lvProducts" runat="server" OnItemCommand="lvProducts_ItemCommand">

				<EmptyDataTemplate>
					<asp:Label ID="lblEmpty" runat="server" Text="Выбранная категория не содержит товаров" />
				</EmptyDataTemplate>

				<ItemTemplate>
					<div class="itemProduct">

						<div class="imageList">
							<asp:HyperLink ID="imageLink" ImageUrl='<%# "~/Images/SmallImages/" + Eval("ProductID") + ".gif" %>'
								NavigateUrl='<%# "~/Product.aspx?id=" + Eval("ProductID") %>' Width="120" Height="120"
								AlternateText="Image" runat="server">
							</asp:HyperLink>
						</div>

						<div class="infoList">
							<asp:Panel ID="Panel1" runat="server">
								Модель:
								<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
								<br />
								Описание:
								<asp:Label ID="InfoLabel" runat="server" Text='<%# Eval("Info") %>' />
								<br />
								Цена:
								<asp:Label ID="Label1" runat="server" Text='<%# Eval("CurrentPrice", "{0:F2}") %>'
									Font-Bold="true" />
							</asp:Panel>
						</div>

						<div class="command">
							<asp:Button ID="btnShowParameters" runat="server" CommandName='<%# ShowParametersCommandName %>'
								CommandArgument='<%# Eval("ProductID") %>' Text="Подробно" />
						</div>
						<div class="spliter"></div>

					</div>
				</ItemTemplate>
			</asp:ListView>

			<div id="divPager" class="pager" runat="server">
				<store:StorePager id="pager" runat="server" StrUrl="~/Catalog.aspx" MasterPageFile="~/Store.Master"></store:StorePager>
			</div>
		</div>
	</div>
</asp:Content>



